package cn.code.mycloud.module.envir.controller.admin.aqi.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Schema(description = "管理后台 - AQI新增/修改 Request VO")
@Data
public class AqiSaveReqVO {

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long id;

    @Schema(description = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "用户ID不能为空")
    private Long userId;

    @Schema(description = "填报人")
    private String userName;

    @Schema(description = "网格用户ID")
    private Long gridUserId;

    @Schema(description = "网格员")
    private String gridUserName;

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "名称不能为空")
    private String name;

    @Schema(description = "细颗粒物（PM2.5）", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "细颗粒物（PM2.5）不能为空")
    private String pm25;

    @Schema(description = "二氧化硫（SO2）", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "二氧化硫（SO2）不能为空")
    private String so2;

    @Schema(description = "一氧化碳（CO）", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "一氧化碳（CO）不能为空")
    private String co;

    @Schema(description = "反馈信息")
    @NotEmpty(message = "反馈信息不能为空")
    private String description;

    @Schema(description = "细颗粒物（PM2.5）-确认值")
    private String pm25Confirm;

    @Schema(description = "二氧化硫（SO2）-确认值")
    private String so2Confirm;

    @Schema(description = "一氧化碳（CO）-确认值")
    private String coConfirm;

    @Schema(description = "反馈信息）-确认值")
    private String descriptionConfirm;

    @Schema(description = "状态(0-待指派 1-已指派 2-已完成)")
    private Integer status;

    @Schema(description = "网格ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "19119")
    @NotNull(message = "网格ID不能为空")
    private Long gridId;

    @Schema(description = "网格名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @NotEmpty(message = "网格名称不能为空")
    private String gridName;

    @Schema(description = "空气质量指数级别", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "空气质量指数级别不能为空")
    private String aqiLevel;

    @Schema(description = "空气质量指数级别-确认值")
    private String aqiLevelConfirm;

    @Schema(description = "AQI", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "AQI不能为空")
    private Integer aqi;

    @Schema(description = "AQI-确认值")
    private Integer aqiConfirm;

}